<?php
defined('IN_YuLin') || exit('NO PERMIT!');

if(IS_POST){
	if($a == 'add'){
		$data['url'] 	= $_POST['domain'];
		$data['tid'] 	= 2;
		$data['wid'] 	= $_POST['wid'];
		$data['remark'] = $_POST['remark'];
		$data['inputtime'] = time();
		$db->exec("insert into ".Table('weblist').CreateInsertSql($data));
		AjaxReturn(['error'=>'0','msg'=>'操作成功']);
	}
}



$tpl->display($m.'/'.$c);
?>